package com.androidhelper.module.common.app;

import android.text.TextUtils;

import com.androidhelper.module.common.utils.IsEmptyUtils;

public class UserGolbal {


    double mLongitude;
    double mLatitude;
    String mUserToken = "";
    private String symbol;
    private String symbolname;
    private String closetime;//自动平仓时间
    private String symbolname_ch;
    private String closetime_ch;
    private int decimalplace;//保留小数位数
    private  String tradetime;//商品交易时间
    private boolean isCloseMarkMainAct;
    private boolean isChecked;

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }



    public boolean isCloseMarkMainAct() {
        return isCloseMarkMainAct;
    }

    public void setCloseMarkMainAct(boolean closeMarkMainAct) {
        isCloseMarkMainAct = closeMarkMainAct;
    }




    public String getTradetime() {
        return tradetime;
    }

    public void setTradetime(String tradetime) {
        this.tradetime = tradetime;
    }




    public int getDecimalplace() {
        return decimalplace;
    }

    public void setDecimalplace(int decimalplace) {
        this.decimalplace = decimalplace;
    }




    public String getSymbolname_ch() {
        return symbolname_ch;
    }

    public void setSymbolname_ch(String symbolname_ch) {
        this.symbolname_ch = symbolname_ch;
    }

    public String getClosetime_ch() {
        return closetime_ch;
    }

    public void setClosetime_ch(String closetime_ch) {
        this.closetime_ch = closetime_ch;
    }



    private double margin;//履约保证金






    public String drawedYYAcount;// 提现的YY数量

    public int uid=0;
    private String phoneNum;
    private  int  status_auth_c1; //高杰C1 实名认证




    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getStatus_auth_c1() {
        return status_auth_c1;
    }

    public void setStatus_auth_c1(int status_auth_c1) {
        this.status_auth_c1 = status_auth_c1;
    }



























    public String getUserToken() {
        return mUserToken;
    }

    public void setUserToken(String userToken) {
        mUserToken = userToken;
    }

    private static UserGolbal userGolbal;

    public static UserGolbal getInstance() {
        if (IsEmptyUtils.isEmpty(userGolbal)) {
            synchronized (UserGolbal.class) {
                if (IsEmptyUtils.isEmpty(userGolbal)) {
                    userGolbal = new UserGolbal();
                }
            }
        }

        return userGolbal;
    }

    public double getLongitude() {
        return mLongitude;
    }

    public void setLongitude(double longitude) {
        mLongitude = longitude;
    }

    public double getLatitude() {
        return mLatitude;
    }

    public void setLatitude(double latitude) {
        mLatitude = latitude;
    }

    public boolean isLogin() {//true 登陆成功  false 未登录，应开启登陆界面
        return !TextUtils.isEmpty(mUserToken);
    }

  public void setLoginOut(){
        //  setUserToken("");
         //  setUid(0);

  }


    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    private int  num;






}
